package com.chanzany.proxy.aop.controller;

import com.chanzany.proxy.aop.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {

    @Autowired
    private StudentService service;

    /**
     * 1.获取学生所有信息
     */
    @GetMapping("/students")
    public String getAll(){
        service.find();
        return "ok";
    }
}